import instance from '../../untils/axios.js'
function getHomeList () {
  return instance({
    url: '/v1_0/channels',
    method: 'get'
  })
}
export { getHomeList }
function getArtleList ({ channel_id, timestamp }) {
  return instance({
    url: '/v1_0/articles',
    method: 'get',
    params: {
      with_top: 1,
      channel_id,
      timestamp
    }
  })
}
export { getArtleList }
